package com.eastfair.home.api;

import com.eastfair.core.base.R;
import com.eastfair.home.dto.ReportDrawingCategoryAuditDTO;
import com.eastfair.home.vo.ReportDrawingCategoryAuditVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 图纸分类审核 Feign.
 *
 * @author dqq
 * @date 2022 /8/10
 */
@FeignClient("home/reportDrawingCategoryAudit")
public interface ReportDrawingCategoryAuditFeign {

    /**
     * 报馆ID查询图纸分类审核VO列表.
     *
     * @param reportSpaceId the report space id
     * @return the r
     */
    @GetMapping("/reportSpace/{reportSpaceId}")
    R<List<ReportDrawingCategoryAuditVO>> queryByReportSpaceId(@PathVariable("reportSpaceId") Long reportSpaceId);

    /**
     * 更新图纸分类报馆审核状态.
     *
     * @param reportDrawingCategoryAuditDTO the report drawing category audit dto
     * @return the r
     */
    @PostMapping("/update/venueAuditStatus")
    R<Boolean> updateVenueAuditStatus(@RequestBody ReportDrawingCategoryAuditDTO reportDrawingCategoryAuditDTO);
}